import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/tykj";

// 设置默认
export function updateIsDefault(id) {
  return request({
    url: '/depot/depot/updateIsDefault/' + id,
    method: 'get',
  })
}
// 查询所有用户列表
export function listUserListAll() {
  return request({
    url: '/system/user/listAll',
    method: 'get',
  })
}
// 查询仓库列表
export function listDepot(query) {
  return request({
    url: '/depot/depot/list',
    method: 'get',
    params: query
  })
}

// 新增仓库列表
export function addDepot(data) {
  return request({
    url: '/depot/depot/save',
    method: 'post',
    data: data
  })
}

// 查询仓库详细
export function getDepot(id) {
  return request({
    url: '/depot/depot/info/' + praseStrEmpty(id),
    method: 'get'
  })
}

// 修改仓库
export function updateDepot(data) {
  return request({
    url: '/depot/depot/update',
    method: 'put',
    data: data
  })
}


// 删除用户
export function delDepot(userId) {
  return request({
    url: '/depot/depot/delete/' + userId,
    method: 'delete'
  })
}






